#ifndef __TASK_SCHEDULER_H_
#define __TASK_SCHEDULER_H_

#ifdef __cplusplus
extern "C"{
#endif
#include "state_machine.h"

typedef struct
{
    bool bEnable;
    u16 hCounter;
    u16 hCompare;
    bool bFlag;
} Timer_t, *pTimer_t;

typedef struct{
    u8 oTimerNum;
    pTimer_t pTimer[5];
}SystemTimer_t;

extern SystemTimer_t SystemTimer;

void TaskScheduler(void);
void SystemTimerUpdate(void);

#ifdef __cplusplus
}
#endif

#endif
